package dao;

import java.util.List;

import entity.Item;
import entity.Order;
import entity.ReceiveAddress;

public interface OrderDAO {
	public void saveAddress(ReceiveAddress address)throws Exception;
	public List<ReceiveAddress> findByUserId(int userId)throws Exception;
	public ReceiveAddress findById(int id)throws Exception;
	public int saveOrder(Order order)throws Exception;
	public void saveItem(Item item)throws Exception;
	public int findMaxId()throws Exception;
	public boolean findAddressByName(String name)throws Exception;
	public ReceiveAddress findByFullAddress(String address)throws Exception;
	public void updateAddress(ReceiveAddress address) throws Exception;
}
